{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %} JIANG BLOG{% endblock %}

{% block page_content %}
  <div class="page-header">
    <h1>{% if name %}
            {{ name }},
            {% if score == 0 %}
                分数为:{{ score }} <a href="/jianren/{{ name }}">开始游戏</a>
            {% else %}
                分数为:{{ score }}
            {% endif %}
    {% else %}请先登录
    {% endif %}!</h1>
    {% if not known %}
        <p>pleased to meet you!</p>
        {{  wtf.quick_form(form) }}
    {% else %}
        <p>Happy to see you again!</p>
         <table class="table table-striped table-hover">
            <tr>
                <th>用户名</th>
                <th>分数</th>
            </tr>
            {% for ranker in posts %}
                <tr>
                    <td>{{ ranker.username }}</td>
                    <td>{{ ranker.score }}</td>
                </tr>
            {% endfor %}

         </table>
    {% endif %}
  </div>


{% endblock %}